﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using GONES.IBLL;

public partial class Console_System_Employee_EmployeesEdit : CPage
{
    public  string EmployeeId { get; set; }
    public  string EmployeeName { get; set; }
    public  string Email { get; set; }
    public  string DepartId { get; set; }
    public  string DepartName { get; set; }
    public  string Position { get; set; }
    public  string IdCard { get; set; }
    public  int Sex { get; set; }
    public  string Birthday { get; set; }
    public  int Age { get; set; }
    public  string Origin { get; set; }
    public  string QQ { get; set; }
    public  string Mobile { get; set; }
    public  string ReMark { get; set; }
    public  string HomeAddr { get; set; }

    public GONES.Model.S_Employees employees = new GONES.Model.S_Employees();

    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            string id = Request.QueryString["id"].ToString();

            var empManger = AppContext.GetObject("S_EmployeesManager") as IS_EmployeesManager;
            employees = empManger.Get(id);
            if (employees != null)
            {
                EmployeeId = employees.ID;
                EmployeeName = employees.EmployeeName;
                Sex = employees.Sex;
                Age = employees.Age;
                Origin = employees.Origin;
                HomeAddr = employees.HomeAddr;
                IdCard = employees.IdCard;
                QQ = employees.QQ;
                Mobile = employees.Mobile;
                Email = employees.Email;
                DepartId = employees.DepartId;
                DepartName = employees.DepartName;
                Position = employees.Position;
                Birthday = employees.Birthday.Value.ToShortDateString();
                ReMark = employees.ReMark;
            }
        }
        catch
        {
 
        }


    }
}